import request from '@/utils/request'

// 查询房态图列表
export function taituList(query) {
  return request({
    url: '/weishu-house/fang/taituList',
    method: 'get',
    params: query
  })
}


// 查询房态图详细
export function getRoomState(id) {
  return request({
    url: '/weishu-house/roomState/' + id,
    method: 'get'
  })
}

// 新增房态图
export function addRoomState(data) {
  return request({
    url: '/weishu-house/roomState',
    method: 'post',
    data: data
  })
}

// 修改房态图
export function updateRoomState(data) {
  return request({
    url: '/weishu-house/roomState',
    method: 'put',
    data: data
  })
}

// 删除房态图
export function delRoomState(id) {
  return request({
    url: '/weishu-house/roomState/' + id,
    method: 'delete'
  })
}
